package com.sth.springcloud.service.impl;

import com.sth.springcloud.entities.Payment;
import com.sth.springcloud.mapper.PaymentMapper;
import com.sth.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: sitianhong
 * @Description:
 * @Since: create in 2021/6/12 0012 14:27
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;

    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }


    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
